package com.sqq.model.a;

import java.util.List;

import com.jfinal.ext.plugin.tablebind.TableBind;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;
import com.sqq.jfinalbase.SqqModel;

@TableBind(tableName = "router_macscan")
public class WeixinModel extends SqqModel<WeixinModel> {
    public static WeixinModel dao = new WeixinModel();

    public static WeixinModel getByNickName(String nickname) {
        return dao.findFirst("select * from router_tooken where name=?  ", nickname);
    }

    public static List<Record> list() {
        List<Record> find = Db.find("select * from router_tooken");
        return find;
    }
    
    
    public static List<Record> list2() {
        List<Record> find = Db.find("select * from router_tooken");
        return find;
    }
}
